﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WCFPointOfSaleService.Entities
{
    public class StockToSyncTrue
    {
        public string uuidTransaction { get; set; }
        public int companyId { get; set; }
        public int stockId { get; set; }
        public string tick { get; set; }
        public string transactionDate { get; set; }

        public StockToSyncTrue()
        {
            this.uuidTransaction = string.Empty;
            this.companyId = -1;
            this.stockId = -1;
            this.Tick = -1;
            this.TransactionDate = DateTime.MinValue;
        }

        public DateTime TransactionDate
        {
            get
            {
                return Convert.ToDateTime(transactionDate); ;
            }

            set
            {
                if (value != null)
                    transactionDate = Convert.ToString(value);
            }
        }

        public Int64 Tick
        {
            get
            {
                return Convert.ToInt64(tick);
            }

            set
            {
                tick = Convert.ToString(value);
            }
        }
    }
}